//
//  ZHTableViewController.m
//  ZHS_UCDemo
//
//  Created by Emrys on 2016/11/22.
//  Copyright © 2016年 Emrys. All rights reserved.
//

#import "ZHTableViewController.h"

#import "ZHTableViewCell.h"

@interface ZHTableViewController ()



@end

@implementation ZHTableViewController

- (void)loadView {
    [super loadView];

    [self.view addSubview:self.tableView];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

#pragma mark -
#pragma mark - UITableViewDelegate
#pragma mark - UITableViewDataSource
- (NSInteger)tableView:(ZHTableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return 0;
}
-(ZHTableViewCell *)tableView:(ZHTableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    return nil;
}

#pragma mark -
#pragma mark - 懒加载
- (UITableView *)tableView {
    if (nil == _tableView) {
        _tableView = [[ZHTableView alloc] initWithFrame:[UIScreen mainScreen].bounds style:UITableViewStylePlain];
        _tableView.delegate = self;
        _tableView.dataSource = self;
    }
    return _tableView;
}
@end
